import request from '@/utils/request'

// 查询投资组合LP权益列表
export function listFundLpRights(query) {
  return request({
    url: '/rights/fundLpRights/list',
    method: 'get',
    params: query
  })
}

// 查询投资组合LP权益详细
export function getFundLpRights(fundId, dealId) {
  return request({
    url: '/rights/fundLpRights/' + fundId + '/' + dealId,
    method: 'get'
  })
}

// 保存投资组合LP权益
export function saveFundLpRights(data) {
  return request({
    url: '/rights/fundLpRights/save',
    method: 'post',
    data: data
  })
}

// 删除投资组合LP权益明细信息
export function deleteDetail(id) {
  return request({
    url: '/rights/fundLpRights/deleteDetail/' + id,
    method: 'delete'
  })
}
